package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import javax.xml.ws.Service;
import java.util.Date;
import java.util.List;

public interface IAttendanceService {

    int saveOrUpdate(Attendance record);

    Attendance selectByPrimaryKey(Long id);

    List<Attendance> selectAll();

    PageResult query(QueryObject qo);

    void changeState(Long id);

    Attendance selectBySignInDate(String date);

    Boolean selectSignInStateByDate(Date signInDate);

    void updatePatchTime(Attendance attendance);
}
